<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<jsp:useBean id="servicePlan" class="java.util.List<entity.ServicePlan>" scope="request"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Service Plan - View All Service Plans</title>
    </head>
    <body>
        <h1>Service Plan - View All Service Plan</h1>
        <c:url var="linkHref" value="/Controller" />
        <a href="${linkHref}">Home</a><br/><br/>
        <table cellspacing="1" cellpadding="1" border="1">
            <tr><th>Service Plan ID</th>
                <th>Service Plan Name</th>
                <th>Monthly Subscription</th> 
                <th>Commission for Cube$</th>
                <th>Commission for Absorption</th>
                <th>Initial Fee</th>
                <th>Per Unit Fee (Advertising)</th>
            <c:forEach items="${servicePlan}" var="svcplan">
                <tr><td>${svcplan.svcPlanID}</td>
                    <td>${svcplan.svcPlanName}</td>
                    <td>${svcplan.svcPlanMthFee}</td>
                    <td>${svcplan.svcPlancomm1}</td>
                    <td>${svcplan.svcPlancomm2}</td>
                    <td>${svcplan.initialFee}</td>
                    <td>${svcplan.perUnitFee}</td></tr>
            </c:forEach>
        </table>
    </body>
</html>
